package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HouseMapper;
import com.ruoyi.system.domain.House;
import com.ruoyi.system.service.IHouseService;

/**
 * 仓库档案Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-16
 */
@Service
public class HouseServiceImpl implements IHouseService 
{
    @Autowired
    private HouseMapper houseMapper;

    /**
     * 查询仓库档案
     * 
     * @param houseId 仓库档案主键
     * @return 仓库档案
     */
    @Override
    public House selectHouseByHouseId(String houseId)
    {
        return houseMapper.selectHouseByHouseId(houseId);
    }

    /**
     * 查询仓库档案列表
     * 
     * @param house 仓库档案
     * @return 仓库档案
     */
    @Override
    public List<House> selectHouseList(House house)
    {
        return houseMapper.selectHouseList(house);
    }

    /**
     * 新增仓库档案
     * 
     * @param house 仓库档案
     * @return 结果
     */
    @Override
    public int insertHouse(House house)
    {
        return houseMapper.insertHouse(house);
    }

    /**
     * 修改仓库档案
     * 
     * @param house 仓库档案
     * @return 结果
     */
    @Override
    public int updateHouse(House house)
    {
        return houseMapper.updateHouse(house);
    }

    /**
     * 批量删除仓库档案
     * 
     * @param houseIds 需要删除的仓库档案主键
     * @return 结果
     */
    @Override
    public int deleteHouseByHouseIds(String[] houseIds)
    {
        return houseMapper.deleteHouseByHouseIds(houseIds);
    }

    /**
     * 删除仓库档案信息
     * 
     * @param houseId 仓库档案主键
     * @return 结果
     */
    @Override
    public int deleteHouseByHouseId(String houseId)
    {
        return houseMapper.deleteHouseByHouseId(houseId);
    }
}
